package main

import (
	"fmt"
	"io/ioutil"
)


func GetAllFile(pathname string) error{

	rd, err := ioutil.ReadDir(pathname)
	if err != nil {
		fmt.Println(err)
	}
	for _, fi := range rd {
		if fi.IsDir() {
			fmt.Printf("[%s]\n", pathname+"//"+fi.Name())
			_ = GetAllFile(pathname + "//" + fi.Name())
		} else{
			fmt.Println("__", fi.Name())
		}
	}
	return err
}

func main(){
	GetAllFile("./")
	fmt.Println("main end")
}